<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>erasechar</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_001_009_054">&nbsp;</a>NAME</h4><blockquote>
erasechar, erasewchar, killchar, killwchar
- terminal environment query functions
</blockquote><h4><a name = "tag_001_009_055">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

char erasechar(void);

int erasewchar(wchar_t *<i>ch</i>);

char killchar(void);

int killwchar(wchar_t *<i>ch</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_001_009_056">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>erasechar()</i>
function returns the current erase character.
&nbsp;The
<i>erasewchar()</i>
function stores the current erase character in the object pointed to by
<i>ch</i>.  If no erase character has been defined, the function will fail and
the object pointed to by <i>ch</i> will not be changed.
<p>
The
<i><a href="killchar.html">killchar()</a></i>
function returns the current line kill character.
&nbsp;The
<i>killwchar()</i>
function stores the current line kill character in the object pointed to by
<i>ch</i>.  If no line kill character has been defined, the function will fail
and the object pointed to by <i>ch</i> will not be changed.
</blockquote><h4><a name = "tag_001_009_057">&nbsp;</a>RETURN VALUE</h4><blockquote>
The
<i>erasechar()</i>
function returns the erase character and
<i><a href="killchar.html">killchar()</a></i>
returns the line kill character.  The return value is unspecified when these
characters are multi-byte characters.
<p>
Upon successful completion,
<i>erasewchar()</i>
and
<i>killwchar()</i>
return OK.  Otherwise, they return ERR.
</blockquote><h4><a name = "tag_001_009_058">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_001_009_059">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
The
<i>erasechar()</i>
and
<i><a href="killchar.html">killchar()</a></i>
functions are only guaranteed to operate reliably on character sets in
which each character fits into a single byte, whose attributes can be
expressed using only constants with the A_ prefix.
Moreover, they do not reliably indicate cases in which when the erase or line
kill character, respectively, has not been defined.  The
<i>erasewchar()</i>
and
<i>killwchar()</i>
functions overcome these limitations.
</blockquote><h4><a name = "tag_001_009_060">&nbsp;</a>SEE ALSO</h4><blockquote>
<xref href=rendition><a href="intov.html#tag_001_003_003">
Attributes
</a></xref>,
<i><a href="clearok.html">clearok()</a></i>,
<i><a href="delscreen.html">delscreen()</a></i>,
<i><a href="../xsh/tcgetattr.html">tcgetattr()</a></i>
(in the <b>XSH</b> specification) ,
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
